﻿@model ViewCategoryViewModel
@{
    ViewBag.Title = "Kelper - " + Model.Name;
}

<div class="category">
    <h2>@Model.Name</h2>

    @if (!Model.Recipes.Any()) {
        <p>Looks like there are no recipes in this category yet!</p>
    } else {
        foreach (var r in Model.Recipes) {
            @Html.DisplayFor(m => r)
        }
    }

    @Html.PageLinks(Model.TotalPages, Model.CurrentPage, x => Url.Action(null, new { name = Model.Name, page = x }))
</div>
